package cc.rengu.igas.cops.common.enums;

/**
 * 业务响应码枚举类
 * Created by 王成 on 2017/6/27.
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    MSG_VALID_CHECK_ERROR("ER11CP01", "报文检查失败"),
    PLAT_MCHNT_NOT_FOUND("ER12CP01", "平台商户信息不存在"),
    PLAT_MCHNT_STATUS_ABNORMAL("ER12CP02", "平台商户状态异常"),
    MCHNT_SECRET_KEY_NOT_MATCH("ER12CP03", "商户应用密钥与系统不匹配"),
    MCHNT_INFO_NOT_FOUND("ER12CP04", "获取商户信息失败"),
    MCHNT_STATUS_ABNORMAL("ER12CP05", "商户状态异常"),
    GET_CARD_BIN_INFO_ERROR("ER12CP06", "获取卡BIN信息失败"),
    GET_PAY_ORDER_INFO_ERROR("ER12CP07", "获取支付订单信息失败"),
    ORDER_NOT_ALLOW_PAY("ER12CP08", "当前订单不能支付"),
    UPDATE_ORDER_STATUS_ERROR("ER12CP09", "更新支付订单信息失败"),
    CALL_BIZ_SERVICE_ERROR("ER12CP10", "调用业务系统处理失败"),
    UPDATE_SMS_INFO_ERROR("ER12CP11", "更新短信信息失败"),
    TXNEXP_INSERT_ERROR("ER12CP12", "交易扩展流水登记失败"),
    AUTHCODE_EXPR_ERROR("ER12CP13", "无效验证码"),
    INVALID_SIGNID_ERROR("ER12CP14", "无效签约协议号"),
    USERREG_INSERT_ERROR("ER12CP15", "登记用户注册信息失败"),
    USER_STATUS_ABNORMAL("ER12CP16", "用户状态异常"),
    USER_NOT_FOUND("ER12CP17", "获取用户信息失败"),
    USER_GENID_ERROR("ER12CP18", "生成用户表ID列值失败"),
    USERREG_EXIT_ERROR("ER12CP19", "用户手机号已经存在"),
    ORDER_CANT_CLOSE("ER12CP20", "当前订单不能关闭"),
    ORDER_NOT_PAY("ER12CP21", "订单未支付成功，请先支付"),
    USERLOGIN_UPDATE_ERROR("ER12CP22", "登记用户注册信息失败"),
    ORDER_CANT_REFUND("ER12CP23", "当前订单不能退款"),
    GET_SIGN_INFO_ERROR("ER12CP24", "未获取到签约信息"),
    CHANNEL_CONFIG_NOT_EXIST("ER12CP25", "通道配置不存在"),
    CHANNEL_STATUS_UNNORMAL("ER12CP26", "通道状态异常"),
    GENERATE_SIGN_BLOCK_ERROR("ER12CP27", "生成加签BLOCK失败"),
    GENERATE_SIGN_ERROR("ER12CP28", "生成数字签名失败"),
    VERIFY_SIGN_ERROR("ER12CP29", "校验数字签名失败"),
    ALIP_NOTICE_TXN_ERROR("ER12CP30", "支付宝通知交易处理失败"),
    OPM_ORIG_TXN_NOT_FOUND("ER12CP31", "原交易信息查找失败"),
    OPM_OVER_AMT_LIMIT("ER12CP32", "超出金额限制"),
    DECRYPT_DATA_ERROR("ER12CP33", "解密数据失败"),
    EXIT_SIGN_INFO_ERROR("ER12CP34", "用户已完成签约"),
    ORDER_CANT_CACEL("ER12CP35", "当前订单不能撤销"),
    BIZ_PRO_ERROR("ER12CP36", "业务产品不正确"),
    MCHNT_INBLACK_ERROR("ER12CP37", "黑名单商户拒绝交易"),
    CHANNEL_UNAVAIABLE("ER12CP38", "渠道不可用"),
    UCPS_MCHNT_INFO_NOT_FOUND("ER12CP39", "商户未开通银联业务"),
    SEC_PLAN_NOEXIT("ER12CP40", "安全计划标识缺失"),
    SEC_PLAN_STATUS_FALSE("ER12CP41", "安全计划状态异常"),
    CERT_STATUS_INVALID("ER12CP42", "安全证书失效"),
    MCHNT_INVALID("ER12CP43", "无效商户"),
    MCHNT_DISACCORD("ER12CP44", "商户信息不一致"),
    MCHNT_AMT_OVER("ER12CP45", "商户超限"),
    SESSION_INVALID("ER12CP46", "会话失效,请重新登陆"),
    USER_INVALID("ER12CP47", "无效用户,请重新登陆"),
    VERIFICATION_CODE_INVALID("ER12CP48", "验证码无效"),
    IDENTITY_INFORM_DISACCORD("ER12CP49", "身份认证失败"),
    PARAM_ERROR("ER12CP50", "参数传入错误"),
    UNSUPPORT_SIGN_TYPE("ER12CP51", "不支持的签约类型"),
    ORDER_NOEXIT("ER12CP52", "订单不存在"),
    ORDER_CLOSED("ER12CP53", "订单已关闭"),
    GEN_CHECK_CODE_FAIL("ER12CP54", "验证码生成失败"),
    USER_NOT_LOGIN_OR_SESSION_IS_EXPIRED("ER12CP55", "用户未登录或会话已过期"),
    NOT_CONF_MSG_TEMPLATE("ER12CP56", "未配置消息模板"),
    TRANS_AMT_DISACCORD("ER12CP57", "交易金额不一致"),
    MCHNT_NO_PERMISSION("ER12CP58", "商户无交易权限"),
    MCHNT_AUTH_INFO_NOT_FOUND("ER12CP59", "商户不支持该业务"),
    TRANS_IN_PROGRESS("ER12CP60", "交易进行中"),
    ORDER_EXPR_ERROR("ER12CP61", "订单已失效"),
    NOT_SURP_ACCTTYPE_ERROR("ER12CP62", "不支持的卡类型"),
    CALC_MCHNT_FEE_ERROR("ER12CP63", "计算商户手续费"),
    MCHNT_ACCT_INFO_NOT_FOUND("ER12CP64", "获取商户结算信息失败"),
    UPDATE_ORDER_ERROR("ER12CP65", "更新订单状态失败"),
    INSERT_PAY_ORDER_ERROR("ER12CP66", "登记支付订单失败"),
    USER_PASSWORD_ERROR("ER12CP67", "用户密码错误"),
    OVER_PASSWORD_ERROR_TIMES("ER12CP68", "密码输入错误次数超限"),
    USER_NOT_EXIT_ERROR("ER12CP69", "用户不存在"),
    USER_OUTLOG_ERROR("ER12CP70", "用户已注销"),
    OVER_DEFAULT_LIMIT_AMT("ER12CP71", "不能超过默认限额"),
    NOT_VLIAD_INST_INFO_ERROR("ER12CP72", "无效机构信息"),
    CARD_STATUS_ERROR("ER12CP73", "卡状态不正常"),
    OPEN_SMS_NOTICE_ERROR("ER12CP74", "卡片未开通短信通知"),
    INVALID_SIGN("ER12CP75", "无效签约关系"),
    CERT_NO_DIFF("ER12CP76", "证件号不一致"),
    DB_CONNECTION_ERROR("ER12CP77", "数据库连接异常"),
    SIGN_RESCISSION("ER12CP78", "已解约"),
    NEEDNOT_LOGIN("ER12CP79", "用户无需登陆"),
    CARD_NAME_DIFF("ER12CP80", "持卡人名称不一致"),
    NOT_SURP_TRANS_TYPE_ERROR("ER12CP81", "不支持的交易类型"),
    ORDER_STATUS_ERR("ER12CP82", "订单未成功"),
    RECEIVE_CARD_COUPON_ERR("ER12CP83", "领取卡劵失败"),
    MCHNT_BILL_PAGE_SEQ_INVALID("ER12CP84", "分页号码不合法"),
    MCHNT_BILL_AGENCY_NO_BLANK("ER12CP85", "代理机构不可为空"),
    MCHNT_BILL_MCHNT_CD_BLANK("ER12CP86", "商户号不可为空"),
    MCHNT_BILL_SUBMCHNT_CD_BLANK("ER12CP87", "子商户号不可为空"),
    MCHNT_BILL_DETAIL_NULL("ER12CP88", "未查询到记录"),
    USER_NOT_SET_PASSWD_ERROR("ER12CP89", "用户未设置密码，请先设置密码"),
    NOT_SURP_SIGNTOEKN_TYPE_ERROR("ER12CP90", "不支持的签约类型"),
    USER_BIND_ALLREADY_CARD_ERROR("ER12CP91", "用户已绑定该卡，请登录后支付"),
    USER_REGISTER_ERROR("ER12CP92", "登记用户签约信息失败"),
    USER_EXIT_ERROR("ER12CP93", "用户已存在"),
    USER_INFO_MISMATCH("ER12CP94", "用户信息不匹配"),
    ORDER_REFUND_ERROR("ER12CP95", "当前订单退款失败"),
    QRCODE_TRANS_FILED("ER12CP96", "不支持的二维码"),
    ORDER_INVALID("ER12CP97", "订单已失效"),
    DATE_START_GREATERTHAN_END_ERROR("ER12CP98", "开始时间不能大于结束时间"),
    DATE_START_GRENTERTHAN_CURRENT_ERROR("ER12CP99", "开始时间不能大于当前时间"),
    USERORDER_NOEXISTENT("ER12CP0A", "用户订单信息不存在"),
    INSTID_NOT_BLANK("ER12CP0B", "法人机构号不能为空"),
    MCHNTNO_NOT_BLANK("ER12CP0C", "商户号不能为空"),
    COMPUTE_MCHNTFEE_FAILE("ER12CP0D", "计算商户手续费失败"),
    ALIGETUSERID_FAILE("ER12CP0E", "获取支付用户信息失败"),
    INSERT_MCHNTORDER_ERROR("ER12CP0F", "记录商户订单表失败"),
    ALIPAYMCHNT_NOEXISTENT("ER12CP0G", "支付宝商户不存在"),
    ORDER_PAYMENT_FAILE("ER12CP0H", "订单支付失败"),
    PAYORDER_INSERT_ERROR("ER12CP0I", "登记支付订单表失败"),
    NONFINANCIALCURRENT_ERROR("ER12CP0J", "查询订单号错误或不存在"),
    COMBOPAYMENT_ERROR("ER12CP0K", "营销手续费计算失败"),
    UPAC_SIGN_NOEXIT("ER12CP0L", "未开通无跳转支付签约"),
    ORDER_FINISH("ER12CP0M", "订单已完成"),
    MCHNT_FREE_NOT_EXIST("ER12CP0N", "商户手续费查询失败"),
    MOMP_CODE_NOT_EXIST("ER12CP0O", "营销产品不存在"),
    POS_PIN_FORMAT_ERR("ER12CP0P", "转Pin失败"),
    PASSWORD_NOT_EXIST("ER12CP0Q", "密码未上送"),
    REAL_TIME_MIN_AMT_NOT_EXIST("ER12CP0R", "实时入账最小金额未配置"),
    FILE_NOT_EXIST("ER12CP0S", "文件不存在"),
    LIMIT_OVER_NO_PAY("ER12CP0T", "限额超过最大限额，已签约未支付。"),
    UPDATE_SIGN_ACCT_ERROR("ER12CP0U", "更新签约信息表失败"),
    B2C_PAY_ERR("ER12CP0V", "付款失败"),
    GET_QRCODE_INFO_ERROR("ER12CP0W", "获取二维码信息失败"),
    ORG_LIMIT_CFG_NOT_FOUND("ER12CP0X", "机构限额未设置"),
    LIMIT_AMT_LT_ZERE("ER12CP0Y", "限额不能小于0"),
    OVER_LIMIT_AMT("ER12CP0Z", "超过设定的限额"),
    SET_LIMIT_AMT_ERROR("ER12PCP1A", "限额设置失败"),
    GET_QRCODE_NOT_ACC("ER12CP1B", "账号没有签约，现在签约?"),
    MOBILE_DIFERENT("ER12CP1C", "手机号不一致"),
    USER_SET_PASSWORD_ERROR("ER12CP1D", "用户设置/重置支付密码失败"),
    SIGN_CHANNEL_USELESS("ER12CP1E", "无可用的通道"),
    /* 系统级公共错误 */
    BIZ_TIMEOUT_ERROR("ER129998", "业务系统处理超时"),
    SYSTEM_ERROR("ER129999", "系统异常"),
    INSERT_USERORDER_ERROR("ER130024", "记录用户订单表失败"),
    INVALID_PAYER_ACCT("ER130025", "登记账户不匹配"),
    UPDATE_USER_ORDER_ERROR("ER130026", "更新用户订单信息失败"),
    BUSI_SYS_NOT_RESP("ER12CP0S", "业务系统未返回成功应答"),
    POS_INVALID_AMT("ER12CP0T", "无效的金额"),
    GET_QRCODE_INVALID("ER12CP0W", "二维码无效"),
    NOTSUPPORT_MERGEPAY("ER12CP0X", "该渠道不支持合并支付"),
    CERTTYPRORCERTNO_NOT_BLANK("ER12CP0Y", "证件号或证件类型不能为空"),
    ORDER_ALREADY_EXISTS("ER12CP0Z", "订单已存在"),
    ORDER_CANT_CONFIRM("ER12CP1A", "订单不允许确认收货"),
    ORDER_ALREADY_CONFIRM("ER12CP1B", "订单已完成确认收货");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
